﻿using System;
using System.Runtime.Remoting.Messaging;

namespace OperationPlugins.Applications
{
    /// <summary>
    /// This is the application request context.
    /// </summary>
    [Serializable]
    public class ApplicationRequestContext : MarshalByRefObject, ILogicalThreadAffinative
    {
        ///// <summary>
        ///// The service type.
        ///// </summary>
        //public ApplicationServiceTypes ServiceType { get; set; }

        public bool TryGetServiceType(out ApplicationServiceTypes serviceType)
        {
            serviceType=ApplicationServiceTypes.Validator;
            ;
            return true;
        }

        /// <summary>
        /// The HTTP request headers.
        /// </summary>
        public HttpRequestHeaders Headers { get; set; }

        /// <summary>
        /// The content.
        /// </summary>
        public string Content { get; set; }
    }
}